package com.siemens.industrial.app;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * Created by Yipin on 2016/11/24.
 */
public class DBBackupDifferentialJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException{
        System.out.println("Hello Job for DB Differential Backup");
        DBBackupImplementation dbBackupImplementation = new DBBackupImplementation();
        dbBackupImplementation.diffBackup();
        System.out.println("From DB Differential backup job, now "+new Date());
    }
}
